﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace GShare1._0.Server
{
    class ServerState
    {
        public byte[] Buffer = new byte[1024]; //buffer for network i/o
        public int DataSize = 0; //data size to be received by the server
        public bool DataSizeReceived = false; //whether prefix was received
        //public MemoryStream Data = new MemoryStream(); //place where data is stored
        public Socket Client;   //client socket
        public int DataReceived = 0;
    }
}
